package com.cskaoyan.javase.oop3.innerclazz6.static3.classload2;

/**
 * @description: 静态内部类类加载
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

/**
 * 静态内部类和外围类的类加载各自独立
 * 分别在创建各自的对象时，类加载
 *
 */
public class Demo2 {
    public static void main(String[] args) {
        //创建静态内部类对象
        //EnclosedClazz.InnerStaticClazz isc = new EnclosedClazz.InnerStaticClazz();
        EnclosedClazz enclosedClazz = new EnclosedClazz();
    }
}
class EnclosedClazz{
    static {
        System.out.println("enclosed");
    }
    static class InnerStaticClazz{
        static {
            System.out.println("inner");
        }
    }
}
